package com.cindata

class Area
{

    String name
    String zoneNumber
    Integer areaLevel
    Area parentArea
    String partitionSuffix
    Double longitude
    Double latitude

    Integer statusCd

    static constraints = {
        name maxSize: 128
        parentArea nullable: true, blank: true
        zoneNumber maxSize: 16, blank: true, nullable: true
        partitionSuffix blank: true, nullable: true, maxSize: 16
        areaLevel blank: true, nullable: true
        longitude blank: true, nullable: true
        latitude blank: true, nullable: true

        statusCd maxSize: 5, blank: true, nullable: true
    }

    static mapping = {
        version false

        columns {
            id column: 'AREA_ID'
            parentArea column: 'PARENT_AREA'
        }
    }
}
